import GENE_LOADING from '@/assets/image/generate_loading.gif';
import { Modal } from 'antd';

const Loading: React.FC<any> = (props: any) => {
  const { loading } = props;
  return (
    <Modal
      footer={false}
      open={loading}
      closable={false}
      showCloseIcon={false}
      width={'276px'}
      height={'75px'}
      centered
    >
      <div className="loading">
        <img src={GENE_LOADING} alt="" height={44} width={74} />
        AI智能生成中,请稍等......
      </div>
    </Modal>
  );
};

export default Loading;
